package com.yyplatform.admin.platform.notice.model.entity;

import com.yyplatform.admin.infra.model.entity.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * @author sleepforests@163.com
 * <p>
 * Created on 2024/9/22 10:58
 */
@Entity
@Getter
@Setter
@Table(name = "sys_notice")
public class SysNoticeEntity extends BaseEntity {

    @Column(name = "notice_type", nullable = false, columnDefinition = " tinyint comment '通知类型' ")
    private Integer noticeType;

    @Column(name = "title", nullable = false, columnDefinition = " varchar(200) comment '标题' ")
    private String title;

    @Column(name = "content", nullable = false, columnDefinition = " text comment '通知内容'")
    private String content;


    @Column(name = "send_all_dept", nullable = false, columnDefinition = " tinyint comment '是否所有人' ")
    private Boolean sendAllDept;

    @Column(name = "remark", columnDefinition = " varchar(200) comment '备注' ")
    private String remark;

    @Column(name = "dept_ids", columnDefinition = " varchar(200) comment '接收部门IDs' ")
    private String deptIds;

    // 未发送的是 草稿 状态
    @Column(name = "send_flag", columnDefinition = " tinyint comment '是否发送' ")
    private Boolean sendFlag;


    @Column(name = "delete_flag", columnDefinition = " tinyint comment '是否删除' ")
    private Boolean deleteFlag;

}
